﻿// JScript File


/*for fix Error page Exceptions*/
window.isFireFox = (navigator.userAgent.indexOf("Firefox") != -1);

if(window.isFireFox)
{
        window.addEventListener('load',OnPageLoad,false);
}
function OnPageLoad()
{
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(OnBeginRequest);      
}

function OnBeginRequest(sender, args)
{
      var delta = args.get_request().get_headers()['X-MicrosoftAjax'];   
      if(delta == 'Delta=true')   
      {
            var body = args.get_request().get_body() + 'X-MicrosoftAjax=' + encodeURIComponent('Delta=true');       
            args.get_request().set_body(body);   
      }
}


